package com.twl.app.base.bo;

import java.util.List;

import org.springframework.stereotype.Repository; 
import org.springframework.transaction.annotation.Transactional;

import com.twl.app.base.entity.OpenState;
import com.twl.core.framework.bo.impl.AbsCrudBoImpl;
/***
 * 记录表
 * @author uatzhangxc
 *
 */
@Transactional
@Repository("paramBoImpl")
public class ParamBoImpl extends AbsCrudBoImpl{
	
	public int saveparam(OpenState stat){
		Object object=null;
	     try {
		  object=super.addData(stat);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	     if(object !=null){
	    	 return 1;
	     }else{
	    	 return 0;
	     }
	}
	public List<OpenState> findparam(String sql){
		
		@SuppressWarnings("unchecked")
		List<OpenState> open=super.findAll(sql);
		
		return open;
	}
	 
	public int updateparam(String sql){
	    int number=0;
	    number=super.executeSql(sql);	
	    return number;
	}
}
